package e27

import "unsafe"

func unsafeToBytes(s string) []byte {
	return *(*[]byte)(unsafe.Pointer(&s))
}

func unsafeToBytes2(s string) []byte {
	d := unsafe.StringData(s)
	return unsafe.Slice(d, len(s))
}

func unsafeToString(b []byte) string {
	return *(*string)(unsafe.Pointer(&b))
}

func unsafeToString2(b []byte) string {
	return unsafe.String(&b[0], len(b))
}
